Closed Bug 1600552 Opened 5 years ago Closed 5 years ago

Remove a nested redundant #if

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox73 fixed)

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: Sylvestre, Assigned: tanner.e.davies, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=C++])

Attachments

(1 file)

Filling as a good first bug to learn workflows.

MOZ_SANDBOX is checked twice and we are in the same block
https://searchfox.org/mozilla-central/source/toolkit/xre/nsXREDirProvider.cpp#619

As the change is trivial, it is just to learn how to contribute to Firefox.

Found by http://clang.llvm.org/extra/clang-tidy/checks/readability-redundant-preprocessor.html

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html

Could I take this one, please?

Sure, please provide a paych

Assignee: nobody → tanner.e.davies
Attachment #9114281 - Attachment description: Bug 1600552 - Remove redundant #if, #endif r=ahal → Bug 1600552 - Remove redundant #if, #endif r=Sylvestre
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/09770afb0f03 Remove redundant #if, #endif r=sylvestre
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73

After taking a closer look, it appears there is another redundant #if/#endif that I missed within the same block (line 740 and 744 of what was pushed on this bug). I think this should be reopened so someone else can use it as a first bug to learn workflow.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

As a note, the outer #if (MOZ_SANDBOX) (the one that doesn't need to be removed) is found on line 607 of what was pushed (follow the link from comment 4--the file may have been changed since this was pushed) and its respective #endif is on line 835.

Please open a new bug instead. They are cheap and it prevents some confusion.

Sounds good. Will do.

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → INVALID
Resolution: INVALID → FIXED
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: